import request from "../../utils/request.js";
const system = {
    //用户
    getSysuserList(params) {
        return request.post('/admin/system.sysuser/index', params);
    },
    addSysuser(params) {
        return request.post('/admin/system.sysuser/add', params);
    },
    editSysuser(params) {
        return request.post('/admin/system.sysuser/edit', params);
    },
    deleteSysuser(params) {
        return request.post('/admin/system.sysuser/delete', params);
    },
    //角色
    getSysroleList(params) {
        return request.post('/admin/system.sysrole/index', params);
    },
    addSysrole(params) {
        return request.post('/admin/system.sysrole/add', params);
    },
    editSysrole(params) {
        return request.post('/admin/system.sysrole/edit', params);
    },
    deleteSysrole(params) {
        return request.post('/admin/system.sysrole/delete', params);
    },
    //菜单
    getSysmenuList(params) {
        return request.post('/admin/system.sysmenu/index', params);
    },
    addSysmenu(params) {
        return request.post('/admin/system.sysmenu/add', params);
    },
    editSysmenu(params) {
        return request.post('/admin/system.sysmenu/edit', params);
    },
    deleteSysmenu(params) {
        return request.post('/admin/system.sysmenu/delete', params);
    },
}

export default system;
